/* 简历编辑器样式 - ResumeEditor.vue */

/* 编辑页样式（仅布局） */
.template-column {
  height: calc(100vh - 200px);
  overflow-y: auto;
}

.template-selector {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 12px;
  height: 100%;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.template-selector-header {
  margin-bottom: 16px;
}

.template-selector-header h3 {
  margin: 0 0 6px 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.template-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.template-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-card {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.template-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.template-card.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.template-preview {
  padding: 12px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
}

.template-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
}

.template-sample {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sample-header {
  height: 16px;
  border-radius: 3px;
  opacity: 0.9;
}

.sample-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sample-line {
  height: 6px;
  border-radius: 2px;
  opacity: 0.7;
}

.sample-line.short {
  width: 60%;
}

.editor-main {
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 20px;
}

.editor-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.header-text h2 {
  color: #fff;
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
}

.header-text p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 14px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.action-btn.save-btn {
  background: #4CAF50;
  border-color: #4CAF50;
}

.action-btn.save-btn:hover {
  background: #45a049;
}

.edit-card {
  min-height: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: none;
}

.form-item {
  margin-bottom: 20px;
}

.form-input {
  border-radius: 8px;
}

.form-input:focus {
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.skill-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 照片上传样式 */
.photo-upload-container {
  width: 100%;
}

.photo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 2px dashed #667eea;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.preview-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.photo-actions {
  display: flex;
  gap: 12px;
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  border: 2px dashed #667eea;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: #4CAF50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  transform: translateY(-2px);
}

.upload-icon {
  font-size: 56px;
  color: #667eea;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
  color: #4CAF50;
  transform: scale(1.1);
}

.upload-text p {
  margin: 6px 0;
  color: #666;
  font-size: 14px;
}

.upload-tip {
  font-size: 12px;
  color: #999;
}

/* 限制提示样式 */
.limit-warning {
  margin-bottom: 16px;
}

.limit-warning .el-alert {
  border-radius: 8px;
}

.limit-warning .el-alert__content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}
